import typescript from '@rollup/plugin-typescript';
import dts from 'rollup-plugin-dts'

const config = [
  {
    input: "src/index.ts",
    output: [
      {
        file: "dist/index.mjs",
        format: "es",
      },{
        file: "dist/index.cjs",
        format: "cjs",
      }
    ],
    plugins:[typescript()]
  },
  {
    input: "src/index.ts",
    output: {
      file: "dist/index.d.ts",
      format: "es"
    },
    plugins: [dts()]
  }
]
export default config;
